{% extends "base.html" %}
{% block content %}
<div class="stage">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t1">

	<div id="mod_bloglist" class="mod" rel="drag">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth"><!-- /table1 -->
			<tr><td class="modtl" width="7">&nbsp;</td>
			<td class="modtc" nowrap><div class="modhead"><span class="modtit">文章列表</span></div></td>
			<td class="modtc" nowrap align="right">
			{% if 6|power %}<div class="modopt"><a href="/admin/posts/new"  class="modact"><img src="{{ theme.dir }}/images/ico_postnew.gif" border="0" align="absmiddle">写新文章</a></div>{% endif %}</td>
			<td class="modtr" width="7">&nbsp;</td>
			</tr>
		</table><!-- /table1 -->
		
		<div id="m_blog" class="modbox"><!-- /m_blog -->
		{% if not posts or not posts|length %}
			<h2>没有文章！</h2>
		{% endif %}
		{% for post in posts %}
			<div class="tit"><a href="/post/{{ post.permalink }}.html">{{ post.title }}</a></div>
			<div class="date">{{post.published|datetz:"Y/m/d H:i"}}</div>
				<table style="table-layout:fixed"><tr><td><div class="cnt">
				{{ post.excerpt|linebreaks }}
				</div></td></tr></table>
				
				<div class="opt">Tag：{% for tag in post.get_tags %} <a href="/tag/{{tag.tag}}/">{{tag.tag}}</a> &nbsp;{% endfor %}</div>
				<div class="opt">类别：{% for cat in post.categories %}<a href="/category/{{ cat.category_url}}/" title="查看该分类中所有文章">{{ cat.category_name }}</a>&nbsp;{% endfor %}
					{% if 6|power %} | <a href="/admin/posts/edit?id={{ post.key }}">修改</a> 
					| <a href="#" onClick="if(confirm('是否确定要删除该文章？')) location.href='/admin/posts/del?id={{ post.key }}';else return;">删除</a> {% endif %}
					{% if post.comments_enabled %}| <a href="/post/{{ post.permalink }}.html#comments" title="查看该文章的所有评论">评论{% if post.num_comments %}({{ post.num_comments }} 条评论){% endif %}</a> {% endif %}
					| <a href="/post/{{ post.permalink }}.html" title="浏览全文">浏览(<span id="fArea">[more..]</span>)</a>
				</div>
				<div class="line">&nbsp;</div>
		{% endfor %}
		</div><!-- /m_blog -->

		<div class="wedding2" align="right" style="width:100%;">
			{% if navigation.previous_list %}
				<a href="/tag/{{keyword}}/1/" class="nav"><<</a>
				{% for item in navigation.previous_list %}
					<a href="/tag/{{keyword}}/{{item}}/" class="nav">{{item}}</a>
				{% endfor %}
			{% endif %}
			<span class="nav current">{{ navigation.current }}</span>
			{% if navigation.next_list %}
				{% for item in navigation.next_list %}
					<a href="/tag/{{keyword}}/{{item}}/" class="nav">{{item}}</a>
				{% endfor %}
					<a href="/tag/{{keyword}}/{{navigation.last}}/" class="nav">>></a>
			{% endif %}
		</div>
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
			<tr><td class="modbl" width="7">&nbsp;</td>
				<td class="modbc">&nbsp;</td>
				<td class="modbr" width="7">&nbsp;</td>
			</tr>
		</table>
	</div><!-- /mod_bloglist -->

</td>
<td class="c2t2">&nbsp;</td>
<td valign="top" class="c2t3">
{% include "widget.html" %}
</td>
</tr></table>
</div><!-- /stage -->
{% endblock %}